
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Gitbook · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="markdown.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.2.1" data-path="gitbook.html">
            
                <a href="gitbook.html">
            
                    
                    Gitbook
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="markdown.html">
            
                <a href="markdown.html">
            
                    
                    Markdown
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="homebrew.html">
            
                <a href="homebrew.html">
            
                    
                    Homebrew
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="shadowsocks.html">
            
                <a href="shadowsocks.html">
            
                    
                    ShadowSocks
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="git.html">
            
                <a href="git.html">
            
                    
                    git
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="docker.html">
            
                <a href="docker.html">
            
                    
                    Docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="shell.html">
            
                <a href="shell.html">
            
                    
                    Shell命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../node/">
            
                <a href="../node/">
            
                    
                    Node
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../node/standard.html">
            
                <a href="../node/standard.html">
            
                    
                    构架&规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../node/modules.html">
            
                <a href="../node/modules.html">
            
                    
                    模块
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../js/">
            
                <a href="../js/">
            
                    
                    JavaScript
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../js/lodash.html">
            
                <a href="../js/lodash.html">
            
                    
                    lodash
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../js/code.html">
            
                <a href="../js/code.html">
            
                    
                    代码片段
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Gitbook</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="gitbook">Gitbook</h1>
<h2 id="&#x5B89;&#x88C5;">&#x5B89;&#x88C5;</h2>
<p><a href="https://github.com/GitbookIO/gitbook" target="_blank">gitbook</a> &#x7684;&#x5B89;&#x88C5;&#x975E;&#x5E38;&#x7B80;&#x5355;&#xFF0C;&#x8BE6;&#x7EC6;&#x6307;&#x5357;&#x53EF;&#x4EE5;&#x53C2;&#x8003; <a href="https://github.com/GitbookIO/gitbook" target="_blank">gitbook &#x6587;&#x6863;</a>&#x3002;</p>
<pre><code class="lang-shell">$ npm install gitbook -g
</code></pre>
<h2 id="&#x57FA;&#x672C;&#x4F7F;&#x7528;">&#x57FA;&#x672C;&#x4F7F;&#x7528;</h2>
<p><code>gitbook [Commands]</code></p>
<ul>
<li><strong><code>init</code> &#x521D;&#x59CB;&#x5316;&#x4E66;&#x7C4D;&#x76EE;&#x5F55;</strong></li>
<li><strong><code>serve</code> &#x7F16;&#x8BD1;&#x4E66;&#x7C4D;</strong></li>
<li><strong><code>build</code> &#x7F16;&#x8BD1;&#x76EE;&#x5F55;&#x8F93;&#x51FA;<code>Web</code>&#x683C;&#x5F0F;(&#x8F93;&#x51FA;&#x81F3;_book&#x6587;&#x4EF6;&#x5939;&#x4E2D;)</strong></li>
<li><code>pdf</code> &#x7F16;&#x8BD1;&#x76EE;&#x5F55;&#x8F93;&#x51FA;<code>PDF</code>&#x683C;&#x5F0F;</li>
<li><code>epub</code> &#x7F16;&#x8BD1;&#x76EE;&#x5F55;&#x8F93;&#x51FA;<code>epub</code>&#x683C;&#x5F0F;</li>
<li><code>mobi</code> &#x7F16;&#x8BD1;&#x76EE;&#x5F55;&#x8F93;&#x51FA;<code>mobi</code>&#x683C;&#x5F0F;</li>
</ul>
<h2 id="&#x76EE;&#x5F55;&#x7ED3;&#x6784;">&#x76EE;&#x5F55;&#x7ED3;&#x6784;</h2>
<pre><code>&#x251C;&#x2500;&#x2500; README.md    //&#x4E66;&#x7C4D;&#x7684;&#x7B80;&#x5355;&#x4ECB;&#x7ECD;
&#x251C;&#x2500;&#x2500; SUMMARY.md    //&#x4E66;&#x7C4D;&#x7684;&#x76EE;&#x5F55;&#x7ED3;&#x6784;
&#x251C;&#x2500;&#x2500; cover_small.png    //&#x4E66;&#x7C4D;&#x7684;&#x5C01;&#x9762;&#x56FE;
&#x251C;&#x2500;&#x2500; cover.png    //&#x4E66;&#x7C4D;&#x7684;&#x5C01;&#x9762;&#x56FE;
&#x251C;&#x2500;&#x2500; chapter1    //&#x7B2C;&#x4E00;&#x7AE0;
&#x2502;   &#x251C;&#x2500;&#x2500; README.md    //&#x7B80;&#x4ECB;
&#x2502;   &#x251C;&#x2500;&#x2500; section1.1.md    //&#x7B2C;&#x4E00;&#x8282;
&#x2502;   &#x2514;&#x2500;&#x2500; section1.2.md    //&#x7B2C;&#x4E00;&#x8282;
&#x2514;&#x2500;&#x2500; chapter2    //&#x7B2C;&#x4E8C;&#x7AE0;
    &#x2514;&#x2500;&#x2500; README.md    //&#x7B80;&#x4ECB;
</code></pre><h2 id="gitbook-init-&#x547D;&#x4EE4;">gitbook init &#x547D;&#x4EE4;</h2>
<ul>
<li>&#x82E5;&#x76EE;&#x5F55;&#x4E3A;&#x7A7A;&#xFF0C;&#x5219;&#x81EA;&#x52A8;&#x521B;&#x5EFA;<code>README.md</code>&#x548C;<code>SUMMARY.md</code>&#x6587;&#x4EF6;&#x3002;</li>
<li>&#x82E5;&#x76EE;&#x5F55;&#x5B58;&#x5728;<code>SUMMARY.md</code>&#x6587;&#x4EF6;&#xFF0C;&#x5219;&#x6839;&#x636E;&#x8BE5;&#x6587;&#x4EF6;&#x81EA;&#x52A8;&#x751F;&#x6210;&#x76EE;&#x5F55;&#x7ED3;&#x6784;&#x3002;</li>
</ul>
<p>README.md &#x662F;&#x5BF9;&#x4E66;&#x7C4D;&#x7684;&#x7B80;&#x5355;&#x4ECB;&#x7ECD;&#xFF1A;</p>
<pre><code>$ cat book/README.md 
# README

This is a book powered by [GitBook](https://github.com/GitbookIO/gitbook).
</code></pre><p>SUMMARY.md &#x662F;&#x4E66;&#x7C4D;&#x7684;&#x76EE;&#x5F55;&#x7ED3;&#x6784;:</p>
<pre><code>$ cat book/SUMMARY.md 
# SUMMARY

* [Chapter1](chapter1/README.md)
  * [Section1.1](chapter1/section1.1.md)
  * [Section1.2](chapter1/section1.2.md)
* [Chapter2](chapter2/README.md)
</code></pre><h2 id="gitbook-serve-&#x547D;&#x4EE4;">gitbook serve &#x547D;&#x4EE4;</h2>
<p><code>gitbook serve</code> &#x547D;&#x4EE4;&#x4F1A;&#x9996;&#x5148;&#x8C03;&#x7528; <code>gitbook build</code> &#x7F16;&#x8BD1;&#x4E66;&#x7C4D;&#xFF0C;&#x5B8C;&#x6210;&#x4EE5;&#x540E;&#x6253;&#x5F00;&#x4E00;&#x4E2A; web &#x670D;&#x52A1;&#x5668;&#xFF0C;&#x76D1;&#x542C;&#x5728;&#x672C;&#x5730;&#x7684; 4000 &#x7AEF;&#x53E3;&#x3002;</p>
<h2 id="&#x53D1;&#x5E03;gitbook&#x5230;&#x7801;&#x4E91;page">&#x53D1;&#x5E03;gitbook&#x5230;&#x7801;&#x4E91;Page</h2>
<p>&#x767B;&#x5F55;<a href="https://git.oschina.net/" target="_blank">&#x7801;&#x4E91;</a>&#x521B;&#x5EFA;&#x9879;&#x76EE;</p>
<pre><code class="lang-shell">$ cd _book
$ git init
$ git remote add origin https://git.oschina.net/aieryun/master-book.git
$ git add .
$ git commgit commit -m &quot;first commit&quot;
$ git push -u origin master
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: 工具">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="markdown.html" class="navigation navigation-next " aria-label="Next page: Markdown">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Gitbook","level":"1.2.1","depth":2,"next":{"title":"Markdown","level":"1.2.2","depth":2,"path":"tools/markdown.md","ref":"tools/markdown.md","articles":[]},"previous":{"title":"工具","level":"1.2","depth":1,"path":"tools/README.md","ref":"tools/README.md","articles":[{"title":"Gitbook","level":"1.2.1","depth":2,"path":"tools/gitbook.md","ref":"tools/gitbook.md","articles":[]},{"title":"Markdown","level":"1.2.2","depth":2,"path":"tools/markdown.md","ref":"tools/markdown.md","articles":[]},{"title":"Homebrew","level":"1.2.3","depth":2,"path":"tools/homebrew.md","ref":"tools/homebrew.md","articles":[]},{"title":"ShadowSocks","level":"1.2.4","depth":2,"path":"tools/shadowsocks.md","ref":"tools/shadowsocks.md","articles":[]},{"title":"git","level":"1.2.5","depth":2,"path":"tools/git.md","ref":"tools/git.md","articles":[]},{"title":"Docker","level":"1.2.6","depth":2,"path":"tools/docker.md","ref":"tools/docker.md","articles":[]},{"title":"Shell命令","level":"1.2.7","depth":2,"path":"tools/shell.md","ref":"tools/shell.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tools/gitbook.md","mtime":"2016-11-02T08:52:37.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2016-11-02T08:53:04.210Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

